package cn.edu.scau.dropship.service;

import cn.edu.scau.dropship.entity.Finance_check;
import cn.edu.scau.dropship.entity.Finance_checkExample;

import java.sql.Timestamp;
import java.util.Date;
import java.util.List;

public interface FinanceService {
    
    public long countByExample(Finance_checkExample example);

    public int deleteByExample(Finance_checkExample example);
    
    public int deleteByPrimaryKey(Integer id);
    
    public int insert(Finance_check record);
    
    public int insertSelective(Finance_check record);
    
    public List<Finance_check> selectByExample(Finance_checkExample example);
    
    public Finance_check selectByPrimaryKey(Integer id);
    
    public int updateByExampleSelective(Finance_check record, Finance_checkExample example);
    
    public int updateByExample(Finance_check record, Finance_checkExample example);
    
    public int updateByPrimaryKeySelective(Finance_check record);
    
    public int updateByPrimaryKey(Finance_check record);

    //列表查询
    public List<Finance_check> getlist();

    //条件查询，wid
    public List<Finance_check> selectByWid(Integer wid);

    //根据申请时间applyTime查询 selectByApplyTime
    public Finance_check selectByApplyTime(Date time);

    /*//找到最新的一条记录
    public Finance_check selectLast();*/
}
